package by.grsu.hdm.model;

public class UsbPort implements IUsbPort {
	
	private String portName;
	
	private IDevice connectedDevice;
	
	protected UsbPort() { }

	public UsbPort(String portName) {
		this.portName = portName;
	}

	public String getPortName() {
		return portName;
	}

	public IDevice getConnectedDevice() {
		return connectedDevice;
	}

	public void connectDevice(IDevice connectedDevice) {
		this.connectedDevice = connectedDevice;
	}

	public boolean hasConnectedDevice() {
		return this.connectedDevice != null;
	}
}
